<!--{template header}--><!--页面样式	-->
<div class="wrapper">
    <div class="container_24">
        <section class="clearfix section">
        	<div class="box model yellow ">
        	<div class="inner">
            <header class="box_header clearfix pad10">
                <div class="grid_8 alpha omega">
                	<h1 class="box_title"><span>{$_lang['find_back_password']}</span> Get Password</h1>
				</div>
                <div class="grid_16">
					<nav class="box_nav clearfix">
						<ul>
                			<li><a href="index.php?do=register">{$_lang['no_account_now_register']}</a></li>
							<li><a href="index.php?do=login">{$_lang['has_account_now_login']}</a></li>
						</ul>
					</nav>
				</div>
            </header>
            <div class="box_detail clearfix po_re box pb_10">
                <div class="grid_17">
                    <!--from表单 start-->
					{if $get_step=='step1'}
                    <div class="form_box clearfix box">
                        <form action="index.php?do=get_password&get_step=step1" method="post" id="get_form1" name="get_form1" class="mb_30">
                            <input type="hidden" name="formhash" id="formhash" value="{FORMHASH}"><input type="hidden" name="handlekey" value="get_form1"><!--账号-->
                            <div class="rowElem clearfix po_re mt_30">
                                <label class="grid_4">
                                    {$_lang['account']}{$_lang['zh_mh']}
                                </label>
                                <div class="fl_l mr_5 ml_5">
                                    <input type="text" class="txt txt_input" autocomplete="off" name="txt_account" id="txt_account" limit="required:true;len:2-20;type:string;general:true" msg="{$_lang['username_input_error']}" ajax="index.php?do=register&handlekey=get_form&check_username=" title="{$_lang['please_input_register_account']}" msgArea="login_account_msg" style="width:200px;" />(请输入您的注册用户名)
                                </div><span class="msg" id="login_account_msg"><i></i></span>
                            </div>
         				<!--验证码-->
                        			<div class="rowElem clearfix po_re">
                            			<label class="grid_4">
                                			{$_lang['auth_code']}
                            			</label>
                            			<div class="grid_5 omega po_re" style="width:220px">
                                			<input style="width:65px;" class="fl_l txt_input" name="txt_code" type="text" size="8" id="txt_code" limit="required:true;len:4" msg="{$_lang['auth_code_error']}"msgArea="secode_msg"ajax="index.php?do=ajax&view=code&txt_code=" >
								 			<div id="show_secode_menu_content" class="hidden secode_box">
								 				<img id="secode_img" src="secode_show.php?sid=" onclick="document.getElementById('secode_img').src='secode_show.php?sid='+Math.random(); return false;">
								 				<a class="font14" href="#" onclick="document.getElementById('secode_img').src='secode_show.php?sid='+Math.random(); return false;">{$_lang['change_another_group']}</a>
											</div>
								 		<a id="show_secode" href='index.php?do=ajax&view=menu&ajax=show_secode'></a>
                            			</div>
                            			<span class="" id="secode_msg"></span>
                        			</div>						
                        	<!--end 验证码-->
						
							
                            <div class="mt_20 prefix_4 ml_5">
                                <button type="submit" class="button" id="user_login_btn" onclick="return next();">
                                    <span class="key icon"></span>
                                                                                                         下一步　 
                                </button>
                            </div>
                        </form>
                    </div>
					
					
					{elseif $get_step=='step2'}
					 <div class="form_box clearfix box po_re">
                        <form action="index.php?do=get_password&get_step=step2" method="post" id="get_form" name="get_form" class="mb_30">
                            <input type="hidden" name="formhash" id="formhash" value="{FORMHASH}"><input type="hidden" name="handlekey" value="get_form"><!--账号-->
							<input type="hidden" name="txt_account" value="$account">
							<div class="wrong_tips"><img src="resource/img/keke/error.gif" alt=""></div>
                            <div class="rowElem clearfix po_re mt_30">
                                <label class="grid_4">
                                    {$_lang['account']}{$_lang['zh_mh']}
                                </label>
                                <div class="fl_l mr_5 ml_5">
                                      {$account} 
                                </div>
                            </div>
							{if $email_auth}
                            <div class="rowElem clearfix po_re" style=" z-index:2;">
                                <label class="grid_4">                               
                                                                                       {$_lang['your_email']{$_lang['zh_mh']}																					   
                                </label>
                                <div class="fl_l mr_5 ml_5" id="test">                                 
                                    <div class="mt_10">
                                        {$email_info}(*{$_lang['sure_send_to_this_mail']})																	
                                    </div>
                                </div>
                            </div>
							{else}
							<div class="rowElem clearfix pr_20 po_re" style=" z-index:2; padding-left:90px; padding-top:0;">
							     <div class="fl_l mr_5 ml_5" id="test">                                 
                                    
							  {$_lang['send_mail_fail_please_send']}{$kf_phone}（{$_lang['web_link']}）{$_lang['phone_to_admin_thank']}
							   
								 </div>
							</div>
							{/if}
                            <div class="mt_20 prefix_4 ml_5">
                            	{if $email_auth}
                                <button type="submit" onclick="return get_pass();" class="button" id="user_login_btn">
                                    <span class="key icon"></span>
                                    {$_lang['find_back_password']}　 
                                </button>
								{/if}
                            </div>
                        </form>
                    </div>
					{/if}
					
					
					
					
					
                </div>
                 <div class="grid_7 omega border_l_c mt_20">
                    <div class="pad10">
                        <div class="pl_20">
                            <span>{$_lang['from_cooperation_website_login']}</span>
							{loop $api_open $k $v}
								{if $weibo_list[$k.'_app_id']}
								 <div class="mt_10">
									<a href="index.php?do=oauth_login&type={$k}" alt="{$api_name[$k]['name']}" title="{$api_name[$k]['name']}">
										<img src="resource/img/ico/{$k}_t.gif" alt="{$api_name[$k]['name']}" title="{$api_name[$k]['name']}">
									</a>
									<a href="index.php?do=oauth_login&type={$k}" class="ml_5">{$api_name[$k]['name']}{$_lang['login']} </a>
									</div>
			                   {/if}			
							{/loop}
                        </div>
                    </div>
                </div>
            </div>
			
			</div>
			</div>
        </section>
    </div>
</div>
<div class="clear">
</div>
<script type="text/javascript">    
	In('form');

    $("#txt_account").focus(function(){
        var content = $("#txt_account").val();
        if (content == "{$_lang['username']}") {
            $("#txt_account").val("");
        }
    });
    function next(){
		 if (checkForm(document.getElementById("get_form1"), false)) {
            $("#get_form1").submit();
        }
        return false;
		
	}
 
    function get_pass(){
        if (checkForm(document.getElementById("get_form"), false)) {
            showWindow('get_form', 'get_form', 'post');
        }
        return false;
    }
	
	$("#txt_code").focus(function(){
	$("#show_secode_menu_content").removeClass("hidden");
});
//阻止点击隐藏方法
	$("#txt_code,#show_secode_menu_content").click(function (e) {
		e.stopPropagation();
	});

var hidecode=function(){
	if (!$("#show_secode_menu_content").is(".hidden")){
		//$("#show_secode_menu_content").addClass("hidden");
	}
}
$("body").click(function(){
	hidecode();
})

	
</script>
<!--{template footer}-->
